package com.example.demo.demos.web.cpt;

import com.yomahub.liteflow.annotation.LiteflowCmpDefine;
import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.annotation.LiteflowMethod;
import com.yomahub.liteflow.core.NodeComponent;
import com.yomahub.liteflow.enums.LiteFlowMethodEnum;
import com.yomahub.liteflow.enums.NodeTypeEnum;
import com.yomahub.liteflow.slot.DefaultContext;
import org.springframework.stereotype.Component;

@LiteflowComponent
public class MyDefineIfCpm {  
	@LiteflowMethod(value = LiteFlowMethodEnum.PROCESS_BOOLEAN, nodeType = NodeTypeEnum.BOOLEAN, nodeId = "if", nodeName = "布尔节点")
	public boolean processIf(NodeComponent nodeComponent){
		DefaultContext dataContext = nodeComponent.getContextBean(DefaultContext.class);
		System.out.println("执行if");  
		return false;  
	}  
}